package com.cgc.venus.server.core.k8s.inter;

import com.cgc.venus.server.core.exception.VenusException;
import io.fabric8.kubernetes.api.model.Namespace;

/**
 * Created by Administrator on 2017/9/19.
 */
public interface K8sNamespaceService {

    /**
     * 创建命名空间
     * @param name
     * @return
     * @throws com.cgc.venus.server.core.exception.VenusException
     */
    public boolean createNamespace(String name)throws VenusException;

    /**
     * 查询命名空间
     * @param name
     * @return
     * @throws VenusException
     */
    public Namespace queryNamespace(String name)throws VenusException;

    /**
     * 删除命名空间
     * @return
     * @throws VenusException
     */
    public boolean deleteNamespace(String name)throws VenusException;

    /*
    * 创建镜像仓库的秘钥,拉取镜像的时候用
    * */
    public boolean createHarborSecret(String harborUrl,String username,String password,String namespace) throws VenusException;
}
